package com.yanqu.road.entity.enums.kuang;

/**
 * 矿场争夺战属性类型
 */
public enum eKuangAttributeType {

    AttributeEnum_None(0, "无属性"),
    AttributeEnum_Hp(1, "血量"),
    AttributeEnum_Attack(2, "攻击"),
    AttributeEnum_Critical(3, "暴击"),
    AttributeEnum_Toughness(4, "坚韧"),
    AttributeEnum_AttackSpeed(5, "攻击速度(攻击次数)"),
    AttributeEnum_Dodge(6, "闪避"),
    AttributeEnum_Hit(7, "命中"),
    AttributeEnum_LifeSteal(8, "吸血"),


    AttributeEnum_CurHp(100, "当前血量"),

    //  其他局外属性，计算用
    AttributeEnum_HonoraryTitleLevel(200, "玩家当前最高财神称号等级"),

    // 装备属性
    AttributeEnum_EquipmentScore(300, "单件装备评分"),

    AttributeEnum_TempAbility(998, "裸战力,计算攻血用,玩家看不到"),
    AttributeEnum_Ability(999, "战力"),

    ;

    private int value;

    private String desc = "";

    eKuangAttributeType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static eKuangAttributeType forValue(int value) {
        for (eKuangAttributeType type : eKuangAttributeType.values()) {
            if (type.value == value) {
                return type;
            }
        }
        return null;
    }


}
